﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mang
{
    class Program
    {
        static void Main(string[] args)
        {
            //float 
            float[] a = { 3, 7, 8, 4, 4, 9, 1, 0 };
            int m = a.Length;
            MyArray<float> mang = new MyArray<float>();
            mang.Nhap(a, m);
            mang.Xuat();

            ThuatToanSapXep<float> sl = new SelectionSort<float>();
            mang.ThuatToan = sl;
            mang.SapXep();
            ThuatToanSapXep<float> bb = new BubbleSort<float>();
            //mang.SapXep(bb);
            mang.Xuat();
            

            //Hoc Sinh
            /*HocSinh[] h = { new HocSinh(1, "Nguyen Van A", 7), new HocSinh(2, "Nguyen Van B", 5), new HocSinh(3, "Nguyen Van C", 8) };
            int n = h.Length;
            MyArray<HocSinh> mangHocSinh = new MyArray<HocSinh>();
            mangHocSinh.Nhap(h, n);
            mangHocSinh.Xuat();

            TieuChiSapXep<HocSinh> diem = new TheoDiemTBHocSinh<HocSinh>();
            TieuChiSapXep<HocSinh> id = new TheoIDHocSinh<HocSinh>();
            TieuChiSapXep<HocSinh> hoten = new TheoTenHocSinh<HocSinh>();
            ThuatToanSapXep<HocSinh> bb = new BubbleSort<HocSinh>();//tang dan
            ThuatToanSapXep<HocSinh> sl = new SelectionSort<HocSinh>();//giam dan
            mangHocSinh.SapXep(sl, id);
            mangHocSinh.Xuat();
            */
        }
    }
}
